package com.example.spidertp.business.controller;

import com.example.spidertp.business.service.SimulateExportService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xiong.bo
 * @version 1.0
 * @date 2022/9/18 11:32 上午
 */

@Api(tags = "模拟导出数据的控制器")
@RequestMapping("/api/export")
@RestController
public class SimulateExportController {

    @Autowired
    private SimulateExportService simulateExportService;

    @ApiOperation("模拟导出用户数据")
    @GetMapping("/user")
    public boolean exportUserData(){
        return simulateExportService.exportUserData();
    }

    @ApiOperation("模拟导出订单数据")
    @GetMapping("/order")
    public boolean exportOrderData(){
        return simulateExportService.exportOrderData();
    }

}
